import request from '@/utils/request'
import type { PageParam, ResponseData } from '../commonType'

enum API {
  ADD_URL = '/t-consult-info/add',
  PAGE_URL = '/t-consult-info/list',
  EDIT_URL = '/t-consult-info/update',
}

export function seekGetPage(data: PageParam) {
  return request.get<any, ResponseData>(API.PAGE_URL, { params: data })
}

export function seekAdd(data: any) {
  return request.post<any, ResponseData>(API.ADD_URL, data)
}

export function seekEdit(data: any) {
  return request.post<any, ResponseData>(API.EDIT_URL, data)
}
